﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Show.aspx.cs" Inherits="News_Show" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=newsInfo.news.Title%>--<!--#include file="~/Config/ShoppingName.txt" --> </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/css/home.css" rel="stylesheet" type="text/css" />
    <link href="/css/patch.css" rel="stylesheet" type="text/css" />
    <!--#include file="~/Public/commonjs.shtml" -->
</head>
<body>
	 <!--#include file="~/Public/top.shtml" -->
     <!--main开始-->
     <div class="main w960 cb pr">      <div class="service" style="top:30px; _top:38px;" id="divContactUs">
          <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1186089288&site=qq&menu=yes" title="点击这里给我发消息吧"><img src="/images/service.jpg" /></a>
       </div>       <div class="block1 mt10">         <!--left-->         <div class="m_left">          <h2>商品分类</h2>
           <%
               if (categories != null)
               {
                   bool isEnd = false;
                   for (int i = 0;   i < categories.Count; ++i)
                   {
                       if ( (i+1) >= categories.Count) isEnd = true;
           %>

           <dl class="assort" <%=isEnd?"style=\"border:none;\"":"" %>>
             <dt><%=categories[i].FCategory.Name %></dt>
             <dd>
                <%
                    for (int j = 0; j < categories[i].SCategorys.Count; ++j)
                    {
                        if (j == 0 || (j + 1) % 2 > 0)
                        {
                           Response.Write("<p >");
                        }
                        else
                            Response.Write(" | ");
                        Response.Write("<a  href=\"" + bllUrl.GetGoodsListUrl(categories[i].FCategory.ID, categories[i].SCategorys[j].ID) + "\" >");
                        Response.Write(categories[i].SCategorys[j].Name);
                        Response.Write("</a>");

                       if ((j + 1) == categories[i].SCategorys.Count || (j + 1) % 2 == 0)
                            Response.Write("</p>");
                    }
                   %>
             </dd>
           </dl>
           <%}
               } %>
           <div class="cb mb10">           <div class="left_bar_hot"></div>           <div class="left_hot">             <div class="white_bg">              <!--#include file="~/AutoGenerate/list-hotgoods-words.shtml" -->
             </div>             <div class="left_hot_list">              <!--#include file="~/AutoGenerate/list-hotgoods-pic.shtml" -->
             </div>           </div>           <div class="left_bar_bottom"></div>           </div>         </div>
         <!--left end-->         <!--right-->         <div class="m_right ft">            <p class="tar">              当前位置： <a href="/index.aspx">首页</a> > 商城公告            </p>             <div class="area">              <div class="area_top"></div>              <div class="area_main">                 <h1 class="text_title"><%=newsInfo.news.Title%></h1>                 <div class="title_time">                    <p class="fl ml300">时间：<%=newsInfo.news.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")%></p>                    <div class="fr mr20">                    </div>
                 </div>                 <div class="text_cont f14">                  <%=newsInfo.news.NewsContent%>
                 </div>              </div>
              <div class="area_bottom"></div>
            </div>
         <!--休闲食品--></div> 
         <!--right end-->
       </div>
     </div>
     <!--main结束-->      <div class="share cb w960">
        <div>
           <!--#include file="~/AutoGenerate/AllPage-Bottom-Banner.htm" -->
        </div>
          <!--#include file="~/Public/bottom-shopHelper.shtml" -->
     </div>
    

    <!--#include file="~/Public/bottom.shtml" -->

</body>
</html>
